<script language="JavaScript">

attachEvent("onclick", openSvg);
attachEvent("onmouseover", chgBorder1);
attachEvent("onmouseout", chgBorder2);

function chgBorder1() {
	this.style.border = "thin solid blue";
}

function chgBorder2() {
	this.style.border = "thin solid white";
}

function openSvg() {
	fplen = this.getAttribute("src").split("/").length;
	fn = this.getAttribute("src").split("/")[fplen-1];
	fn = fn.split(".")[0] + ".svgz";
//	svgwin = window.open("","","toolbar=no,location=no,derectories=no,resizable=yes,width=640,height=480");
	svgwin = window.open("","","toolbar=yes,location=no,derectories=no,resizable=yes,width=640,height=480");
	svgwin.focus();
	svgwin.document.writeln('<html>');
	svgwin.document.writeln('<head>');
	svgwin.document.writeln('<style>');
	svgwin.document.writeln('body {background-color: #CCCCCC; margin: 0px;}');
	svgwin.document.writeln('</style>');
	svgwin.document.writeln('<title>' + fn + '</title>');
	svgwin.document.writeln('</head>');
	svgwin.document.writeln('<body>');
	svgwin.document.writeln('<embed src="' + fn + '" name="SVG" pluginspage="http://www.adobe.com/svg/viewer/install" style="width:expression(document.body.clientWidth); height:expression(document.body.clientHeight)" type="image/svg-xml">');
	svgwin.document.writeln('<noembed>To view SVG pages, you will need to download the viewer.</noembed>');
	svgwin.document.writeln('</body>');
	svgwin.document.writeln('</html>');
	svgwin.document.close();
}

</script>
